#ifndef GERMINDEX_H_
#define GERMINDEX_H_

#include <MAUI/Screen.h>
#include <MAUI/ListBox.h>
#include <MAUtil/Map.h>

#include "../DAOs/DTO.h"
#include "../DAOs/GERMProcessor.h"
#include "../Widgets/UIBuilder.h"
#include "../Widgets/LRESItemWidget.h"

using namespace MAUI;
using namespace MAUtil;

class GERMIndex : public Screen, public GERMListener, public WidgetListener {
public:
	GERMIndex();
	~GERMIndex();
	void keyPressEvent(int keyCode, int nativeCode);
	void itemReceived(GERMItem& item);
	void processingComplete();
	void triggered(Widget* sender);
	void pointerPressEvent(MAPoint2d point);
	void pointerReleaseEvent(MAPoint2d point);
	void show();
	void setCompanyid(String& input, String& value);
	void setIsGetData(bool value);

private:
		GERMProcessor* mProcessor;
		Layout* mLayout;
		ListBox* mItems;
		Label* mTitle;
		Widget* mSoftkey;
		bool isGetData;
		String mCompanyid;
};

#endif /* GERMINDEX_H_ */
